<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" layout:decorate="body/main">
<head>
    <meta charset="UTF-8">
    <title>修改</title>
</head>
<body>
<div class="right_col" role="main" layout:fragment="content">
    <div class="">
        <div class="clearfix"></div>
        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">s
                <div class="x_panel">
                    <div class="x_title">
                        <h2>编辑联系人信息 <i class="fa fa-user"></i><small th:text="${session.loginUser.usrName }">用户名</small></h2>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        <div class="clearfix"></div>
                        <form class="form-horizontal form-label-left" th:action="@{/api/linkman/editCstLinkman}"  method="post" enctype="multipart/form-data">
                            <input type="hidden" th:value="${cstLinkman.lkmId}" name="lkmId" id="lkmId">
                            <input type="hidden" th:value="${cstLinkman.lkmCustNo}" name="lkmCustNo" id="lkmCustNo">
                            <input type="hidden" th:value="${custName}" name="lkmCustName" id="lkmCustName">
                            <div class="item form-group">
                                <label class="control-label col-md-2 col-sm-2 col-xs-12" for="lkmName">姓名 <span class="required">*</span>
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-12">
                                    <input id="lkmName" class="form-control col-md-5 col-xs-12"
                                           data-validate-length-range="20" data-validate-words="1" name="lkmName"  required="required"
                                           placeholder="请输入姓名" type="text" th:value="${cstLinkman.lkmName}" >
                                </div>
                                <label class="control-label col-md-2 col-sm-2 col-xs-12" for="lkmSex">性别
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-12">
                                    <input id="lkmSex"
                                           data-validate-length-range="20" data-validate-words="1" name="lkmSex"
                                           type="radio" value="男" th:if="${cstLinkman.lkmSex eq '男'}" checked>男
                                    <input id="lkmSex"
                                           data-validate-length-range="20" data-validate-words="1" name="lkmSex"
                                           type="radio" value="男" th:if="${cstLinkman.lkmSex != '男'}">
                                    <input id="lkmSex"
                                           data-validate-length-range="20" data-validate-words="1" name="lkmSex"
                                           type="radio" value="女" th:if="${cstLinkman.lkmSex eq '女'}" checked>
                                    <input id="lkmSex"
                                           data-validate-length-range="20" data-validate-words="1" name="lkmSex"
                                           type="radio" value="女" th:if="${cstLinkman.lkmSex != '女'}">女
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-2 col-sm-2 col-xs-12" for="lkmPostion">职位 <span class="required">*</span>
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-12">
                                    <input id="lkmPostion" class="form-control col-md-5 col-xs-12"
                                           data-validate-length-range="20" data-validate-words="1" name="lkmPostion"  required="required"
                                           placeholder="请输入职位" type="text" th:value="${cstLinkman.lkmPostion}" >
                                </div>
                                <label class="control-label col-md-2 col-sm-2 col-xs-12" for="lkmTel">办公电话 <span class="required">*</span>
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-12">
                                    <input id="lkmTel" class="form-control col-md-5 col-xs-12"
                                           data-validate-length-range="20" data-validate-words="1" name="lkmTel"  required="required"
                                           placeholder="请输入办公电话" type="text" th:value="${cstLinkman.lkmTel}">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-2 col-sm-2 col-xs-12" for="lkmMobile">手机
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-12">
                                    <input id="lkmMobile" class="form-control col-md-5 col-xs-12"
                                           data-validate-length-range="20" data-validate-words="1" name="lkmMobile"
                                           placeholder="请输入手机" type="text" th:value="${cstLinkman.lkmMobile}">
                                </div>
                                <label class="control-label col-md-2 col-sm-2 col-xs-12" for="lkmMemo">备注
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-12">
                                    <input id="lkmMemo" class="form-control col-md-5 col-xs-12"
                                           data-validate-length-range="20" data-validate-words="1" name="lkmMemo"
                                           placeholder="请输入备注" type="text" th:value="${cstLinkman.lkmMemo}">
                                </div>
                            </div>

                            <div class="ln_solid"></div>
                            <div class="form-group">
                                <div class="col-md-9 col-md-offset-5">
                                    <button id="send" type="submit" class="btn btn-success">保存</button>
                                    <button type="button" class="btn btn-primary" id="back" onclick="history.back()">返回</button>
                                    <br/><br/>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script layout:fragment="js" th:inline="javascript">
</script>
</html>